package com.example.supermarket.service;

import com.example.supermarket.pojo.Business;
import com.example.supermarket.pojo.Item;
import com.example.supermarket.pojo.Order;
import com.example.supermarket.pojo.Shop;

import java.util.List;

public interface BusinessService {
    void createShop(Shop shop);

    void createShopItem(Item item);

    void listItem(Integer shopId, Integer itemId);

    void delistItem(Integer shopId, Integer itemId);

    Business getBusinessInfo();

    List<Order> getOrderByShopId(Integer shopId);

    void confirmOrder(Integer orderId);

    void cancelOrder(Integer orderId);
}
